package creational.singleton.eagerly;

/**
 * 单例的急切模式
 * 缺点：无论是否使用都会创建对象，占用内存
 */
public class Singleton {
    private static Singleton singleton = new Singleton();

    private Singleton() {
    }

    public static Singleton getInstance() {
        return singleton;
    }
}
